<script setup>
defineProps({
    control: Object,
    model: Object,
})
</script>

<template>
    <van-field :label="control.props.label">
        <template #input>
            <div
                style="border:2px solid black; box-sizing: border-box; width:24px; height:24px;"
                :style="{ backgroundColor: model[control.id] }"
            ></div>
        </template>
    </van-field>
</template>